//引入store
import {configureStore} from "@reduxjs/toolkit";
//引入 reducer
import reducer from "./reducer";

//创建store
const store = configureStore({
    reducer
})
//检测store 数据变化
store.subscribe(()=>{
    console.log('检测数据发生变化',store.getState())
})
//将store暴露
export default store